const util = require('../../utils/util')

Component({
  properties:{
     placeholder:{
       type:String,
       value:'搜索'
     }
  },
  methods:{
    
    bindfocus(e){
      this.triggerEvent('focus',e.detail)
    },

    bindinput(e){
        util.debounce(()=>{
          this.triggerEvent('input',e.detail)
        },2000)()
    }
  }
})